package services;

import domain.entities.NormalValuesDAO;
import domain.entities.NormalValues;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: vgonzalez
 * Date: 31/10/12
 * Time: 17:45
 * To change this template use File | Settings | File Templates.
 */
@Service
public class NormalValuesService {
    private NormalValuesDAO normalValuesDAO;

    public NormalValuesService(){

    }

    @Autowired
    public NormalValuesService(NormalValuesDAO normalValuesDAO) {
        this.normalValuesDAO = normalValuesDAO;
    }

    public NormalValues findById(Integer id){
        return normalValuesDAO.findById(id);
    }

    public void delete(NormalValues nv) {
        normalValuesDAO.delete(nv);
    }
}
